disabled g_free (image) calls, as GdkImage is an object. these should be
authorTim Janik <timj@gtk.org>
Sat, 23 Jun 2001 20:26:10 +0000 (20:26 +0000)
committerTim Janik <timj@src.gnome.org>
Sat, 23 Jun 2001 20:26:10 +0000 (20:26 +0000)
Sat Jun 23 22:03:20 2001  Tim Janik  <timj@gtk.org>

        * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
        calls, as GdkImage is an object. these should be g_obejct_unref()
        instead but that won't work because of the g_error() statement
        in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
        to spot these places.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/x11/gdkimage-x11.c

index 094419983f9fd99082a855d082fdc9631da3f7cb..792da488df1ed4731bb0d40378f11f7f9a3bb99e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+Sat Jun 23 22:03:20 2001  Tim Janik  <timj@gtk.org>
+
+       * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
+       calls, as GdkImage is an object. these should be g_obejct_unref()
+       instead but that won't work because of the g_error() statement
+       in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
+       to spot these places.
+
 Sat Jun 23 10:27:53 2001  Owen Taylor  <otaylor@redhat.com>
 
        * modules/input/gtkimcontextxim.c: Fixup some problems with 
index 094419983f9fd99082a855d082fdc9631da3f7cb..792da488df1ed4731bb0d40378f11f7f9a3bb99e 100644 (file)
@@ -1,3 +1,11 @@
+Sat Jun 23 22:03:20 2001  Tim Janik  <timj@gtk.org>
+
+       * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
+       calls, as GdkImage is an object. these should be g_obejct_unref()
+       instead but that won't work because of the g_error() statement
+       in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
+       to spot these places.
+
 Sat Jun 23 10:27:53 2001  Owen Taylor  <otaylor@redhat.com>
 
        * modules/input/gtkimcontextxim.c: Fixup some problems with 
index 094419983f9fd99082a855d082fdc9631da3f7cb..792da488df1ed4731bb0d40378f11f7f9a3bb99e 100644 (file)
@@ -1,3 +1,11 @@
+Sat Jun 23 22:03:20 2001  Tim Janik  <timj@gtk.org>
+
+       * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
+       calls, as GdkImage is an object. these should be g_obejct_unref()
+       instead but that won't work because of the g_error() statement
+       in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
+       to spot these places.
+
 Sat Jun 23 10:27:53 2001  Owen Taylor  <otaylor@redhat.com>
 
        * modules/input/gtkimcontextxim.c: Fixup some problems with 
index 094419983f9fd99082a855d082fdc9631da3f7cb..792da488df1ed4731bb0d40378f11f7f9a3bb99e 100644 (file)
@@ -1,3 +1,11 @@
+Sat Jun 23 22:03:20 2001  Tim Janik  <timj@gtk.org>
+
+       * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
+       calls, as GdkImage is an object. these should be g_obejct_unref()
+       instead but that won't work because of the g_error() statement
+       in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
+       to spot these places.
+
 Sat Jun 23 10:27:53 2001  Owen Taylor  <otaylor@redhat.com>
 
        * modules/input/gtkimcontextxim.c: Fixup some problems with 
index 094419983f9fd99082a855d082fdc9631da3f7cb..792da488df1ed4731bb0d40378f11f7f9a3bb99e 100644 (file)
@@ -1,3 +1,11 @@
+Sat Jun 23 22:03:20 2001  Tim Janik  <timj@gtk.org>
+
+       * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
+       calls, as GdkImage is an object. these should be g_obejct_unref()
+       instead but that won't work because of the g_error() statement
+       in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
+       to spot these places.
+
 Sat Jun 23 10:27:53 2001  Owen Taylor  <otaylor@redhat.com>
 
        * modules/input/gtkimcontextxim.c: Fixup some problems with 
index 094419983f9fd99082a855d082fdc9631da3f7cb..792da488df1ed4731bb0d40378f11f7f9a3bb99e 100644 (file)
@@ -1,3 +1,11 @@
+Sat Jun 23 22:03:20 2001  Tim Janik  <timj@gtk.org>
+
+       * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
+       calls, as GdkImage is an object. these should be g_obejct_unref()
+       instead but that won't work because of the g_error() statement
+       in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
+       to spot these places.
+
 Sat Jun 23 10:27:53 2001  Owen Taylor  <otaylor@redhat.com>
 
        * modules/input/gtkimcontextxim.c: Fixup some problems with 
index 094419983f9fd99082a855d082fdc9631da3f7cb..792da488df1ed4731bb0d40378f11f7f9a3bb99e 100644 (file)
@@ -1,3 +1,11 @@
+Sat Jun 23 22:03:20 2001  Tim Janik  <timj@gtk.org>
+
+       * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
+       calls, as GdkImage is an object. these should be g_obejct_unref()
+       instead but that won't work because of the g_error() statement
+       in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
+       to spot these places.
+
 Sat Jun 23 10:27:53 2001  Owen Taylor  <otaylor@redhat.com>
 
        * modules/input/gtkimcontextxim.c: Fixup some problems with 
index eb116f74880391292b5955f5b0feddc82675c41f..008b515bc7bcffc5a6fbc28db607920eac59683d 100644 (file)
 static GList *image_list = NULL;
 static gpointer parent_class = NULL;
 
-static void gdk_x11_image_destroy    (GdkImage      *image);
-static void gdk_image_init       (GdkImage      *image);
-static void gdk_image_class_init (GdkImageClass *klass);
-static void gdk_image_finalize   (GObject       *object);
+static void gdk_x11_image_destroy (GdkImage      *image);
+static void gdk_image_init        (GdkImage      *image);
+static void gdk_image_class_init  (GdkImageClass *klass);
+static void gdk_image_finalize    (GObject       *object);
 
 #define PRIVATE_DATA(image) ((GdkImagePrivateX11 *) GDK_IMAGE (image)->windowing_data)
 
+#define        LEAK_IMAGE(image)               /* FIXME!! this should be g_object_unref */
+
 GType
 gdk_image_get_type (void)
 {
@@ -94,7 +96,6 @@ static void
 gdk_image_init (GdkImage *image)
 {
   image->windowing_data = g_new0 (GdkImagePrivateX11, 1);
-  
 }
 
 static void
@@ -249,7 +250,7 @@ gdk_image_new (GdkImageType  type,
                {
                  g_warning ("XShmCreateImage failed");
                  
-                 g_free (image);
+                 LEAK_IMAGE (image);
                  gdk_use_xshm = False;
                  return NULL;
                }
@@ -273,7 +274,7 @@ gdk_image_new (GdkImageType  type,
 
                  XDestroyImage (private->ximage);
                  g_free (private->x_shm_info);
-                 g_free (image);
+                 LEAK_IMAGE (image);
 
                  return NULL;
                }
@@ -290,7 +291,7 @@ gdk_image_new (GdkImageType  type,
                  shmctl (x_shm_info->shmid, IPC_RMID, 0);
                  
                  g_free (private->x_shm_info);
-                 g_free (image);
+                 LEAK_IMAGE (image);
 
                  /* Failure in shmat is almost certainly permanent. Most likely error is
                   * EMFILE, which would mean that we've exceeded the per-process
@@ -314,7 +315,7 @@ gdk_image_new (GdkImageType  type,
                  shmctl (x_shm_info->shmid, IPC_RMID, 0);
                   
                  g_free (private->x_shm_info);
-                 g_free (image);
+                 LEAK_IMAGE (image);
 
                  gdk_use_xshm = False;
 
@@ -334,12 +335,12 @@ gdk_image_new (GdkImageType  type,
            }
          else
            {
-             g_free (image);
+             LEAK_IMAGE (image);
              return NULL;
            }
          break;
 #else /* USE_SHM */
-         g_free (image);
+         LEAK_IMAGE (image);
          return NULL;
 #endif /* USE_SHM */
        case GDK_IMAGE_NORMAL: